<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>客户申请信息页面</title>

    <!-- Bootstrap Core CSS -->
    <link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- Datepicker CSS -->
    <link th:href="@{/vendor/datepicker/datepicker3.css}" rel="stylesheet" type="text/css">

    <!-- BootstrapTables CSS -->
    <link href="/vendor/bootstrap-table/css/bootstrap-table.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->


</head>

<body>

<div id="wrapper">
    <div id="page-wrapper"  style="margin-left:0">
        <div class="row">
            <div class="col-lg-12">
                <ul id="myTab" class="nav nav-tabs">
                    <li class="active"><a href="#home" data-toggle="tab">客户申请信息</a></li>
                </ul>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <form th:action="@{/saveApplicationInfo}"  th:object="${applicationInfo_entity}" method="post" >
            <div class="panel-group" id="accordion">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">客户申请信息</a>
                        </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse collapse in">
                        <div class="panel-body">
                            <div class="row">
                                <!--line_no,custcode-->
                                <div class="col-lg-9">
                                    <input class="form-control" type="hidden" name="line_no" th:field="*{line_no}">
                                    <input class="form-control" type="hidden" name="custcode" th:field="*{custcode}">
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-9">
                                    <div class="col-lg-3">
                                        <label>贷款编码：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <input class="form-control" name="loanref" th:field="*{loanref}" disabled>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-9">
                                    <div class="col-lg-3">
                                        <label>客户申请日期：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <input class="form-control" name="applicationdate" th:field="*{applicationdate}">
                                        <div th:if="*{#fields.hasErrors('applicationdate')}" th:errors="*{applicationdate}" class="alert alert-danger">
                                        </div>
                                    </div>
                                    <div class="col-lg-3">
                                        <label>客户申请金额（元）：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <input class="form-control" name="applicationamount" th:field="*{applicationamount}" >
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-9">
                                    <div class="col-lg-3">
                                        <label>客户申请期限（月）：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <input class="form-control" name="deadline" th:field="*{deadline}" >
                                    </div>
                                    <div class="col-lg-3">
                                        <label>客户申请利率（%。）：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <input class="form-control" name="rate" th:field="*{rate}" >
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-9">
                                    <div class="col-lg-3">
                                        <label>贷款目的：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <select class="form-control select2" name="loanpurpose" th:field="*{loanpurpose}">
                                            <option value="">-</option>
                                            <option value="1">固定资产投资</option>
                                            <option value="2">流动资金</option>
                                            <option value="3">固定资产投资及流动资金</option>
                                        </select>
                                    </div>
                                    <div class="col-lg-3">
                                        <label>贷款目的描述：</label>
                                    </div>
                                    <div class="col-lg-3">
                                        <textarea class="form-control" rows="3" name="loanpurposedesc" th:field="*{loanpurposedesc}"></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
            <div class="col-lg-4"></div>
            <div class="col-lg-4" align="center">
                <button  id="btn_delete" type="button" class="btn btn-danger">删  除</button>
                <button id="btn_submit" type="submit" class="btn btn-primary">保  存</button>
            </div>
            <div class="col-lg-4"></div>
        </div>
        </form>
    </div>
</div>

<!-- jQuery -->
<script src="/vendor/jquery/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="/vendor/metisMenu/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/dist/js/sb-admin-2.js"></script>

<!-- Datepicker JavaScript -->
<script th:src="@{/vendor/datepicker/bootstrap-datepicker.js}"></script>

<!-- BootstrapTables JavaScript -->
<script src="/vendor/bootstrap-table/bootstrap-table.js"></script>
<script src="/vendor/bootstrap-table/bootstrap-table-zh-CN.js"></script>

<!-- PledgeTable JavaScript -->
<script src="/js/own/applicationInfo.js"></script>

</body>

</html>
